home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Life 1997 February
/
Computer Life February 1997.iso
/
TELME
/
COMMS
/
DIALPLUS.SRP
< prev
next >
Wrap
Text File
|
1996-06-04
|
3KB
|
142 lines
rem Copyright (c) PhoneLink plc
rem DialPlus (31/8/95)
label InitDevice
echo off
flush
echo script[56]
send "atchar(13)"
timeout 3,modem_fail
find "OK"
label OffToGate
rem DialPlus Offline to Gate (also contains Pad to Gate)
echo off
flush
echo script[57]
send "at{InitModemStr}char(13)"
timeout 3,modem_fail
find "OK"
echo script[52].
send "atd{DialMode}{PreTel}{Tel}{Postfix}char(13)"
timeout {DialTimeout},connect_fail
finderr 0,BUSY,busy
finderr 103,NO DIALTONE,connect_fail
finderr 103,NO DIAL TONE,connect fail
finderr 0,NO CARRIER,no_carrier
find "CONNECT"
timeout 10,pad_fail
find "char(5)"
echo script[60]
send "{DPPassword}char(13)"
timeout 5,pwd_fail
finderr 0,password,pwd_fail
find "RETURN: "
send "{AccessPoint}char(13)"
timeout 10,access_point_fail
find "PAD>"
label PadToGate
echo off
echo script[53]
send "SER{SUB}char(13)"
timeout 3,nua_bad1
finderr 0,COM,nua_good
find "ZZZ"
label nua_bad1
echo script[58]
send "SER{SUB}char(13)"
timeout 3,nua_bad2
finderr 0,COM,nua_good
find "ZZZ"
label nua_bad2
echo script[58]
send "SER{SUB}char(13)"
timeout 3,nua_fail
find "COM"
label nua_good
echo script[54].
end
label GateToPad
echo off
echo script[92]
send "char(16)CLRchar(13)"
timeout 5,ctrl_p_clear_fail
find "CONF"
echo script[91].
end
label GateToOff
rem Gate to Offline (also contains Pad to Offline)
label PadToOff
echo off
echo script[92]
send "+++"
timeout 3,command_mode_fail
find "OK"
echo script[97]
send "at{TermModemStr}char(13)"
timeout 3,Term_Fail
find "OK"
echo script[99].
end
label modem_offline
echo script[92]
send "+++"
timeout 3,hang_up
find "OK"
label hang_up
echo script[97]
send "at{TermModemStr}char(13)"
timeout 3,hang_fail
find "OK"
echo script[99]
label hang_fail
dtrtoggle
abort
label Term_Fail
echo script[98]
abort
label modem_fail
echo script[23]
goto modem_offline
label connect_fail
echo script[1]
goto modem_offline
label busy
echo script[2]
goto modem_offline
label no_carrier
echo script[3]
goto modem_offline
label pad_fail
echo script[4]
goto modem_offline
label pwd_fail
echo script[19]
goto modem_offline
label access_point_fail
echo script[20]
goto modem_offline
label nua_fail
echo script[22]
goto modem_offline
label ctrl_p_clear_fail
echo script[14]
goto modem_offline
label command_mode_fail
echo script[15]
goto modem_offline